/*
 * Copyright (c) 2018-2999 湖南洛云网络科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.seckill.api.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yami.shop.bean.param.LiveRoomParam;
import com.yami.shop.common.serializer.json.ImgJsonSerializer;
import com.yami.shop.seckill.comment.model.Seckill;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 秒杀商品详情
 * @author LGH
 */
@Data
public class SeckillProductDto {
    /**
     * 店铺ID
     */
    @ApiModelProperty(value = "店铺ID", required = true)
    private Long shopId;

    /**
     * 店铺名称
     */
    @ApiModelProperty(value = "店铺名称", required = true)
    private String shopName;

    /**
     * 商品ID
     */
    @ApiModelProperty(value = "商品ID", required = true)
    private Long prodId;

    /**
     * 商品名称
     */
    @ApiModelProperty(value = "商品名称")
    private String prodName;

    /**
     * 商品详情
     */
    @ApiModelProperty(value = "详细描述")
    private String content;

    /**
     * 现价
     */
    @ApiModelProperty(value = "商品原价格")
    private Double price;

    /**
     * 简要描述,卖点等
     */
    @ApiModelProperty(value = "简要描述,卖点等", required = true)
    private String brief;

    /**
     * 商品主图
     */
    @JsonSerialize(using = ImgJsonSerializer.class)
    @ApiModelProperty(value = "商品主图", required = true)
    private String pic;

    @JsonSerialize(using = ImgJsonSerializer.class)
    @ApiModelProperty(value = "商品图片列表，以逗号分割", required = true)
    private String imgs;

    @ApiModelProperty(value = "秒杀活动信息", required = true)
    private Seckill seckill;

    @ApiModelProperty(value = "sku列表")
    private List<SeckillSkuDto> skuList;

    /**
     * 商品直播间列表
     */
    @ApiModelProperty(value = "商品直播间列表", required = true)
    private List<LiveRoomParam> liveRoomParams;

}
